package com.xy.hms.mapper;

import com.xy.hms.model.RoomOrder;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author xiaye
 * @create 2020-04-29-9:22
 */
@Mapper
@Repository
public interface OrderMapper {
    /**
     * 查询所有的订单
     * @return
     */
    public List<RoomOrder> selectAllOrders();

    public RoomOrder selectOrderByID(Integer id);
    public int updateOrder(RoomOrder roomOrder);
    public int deleteOrderByID();

    int addOrder(RoomOrder order);
}
